I am trying to automate a couple of steps using pywinauto in python. I am trying to click the Button called "Test Instance" in the attached figure. The thing is that the name of the window is "Site Controller GUI Command Center - Version: 2.5.2.0 OfflineLSM" is not recognized
Here is my tries : from pywinauto import application from pywinauto import findwindows from pywinauto import timings from pywinauto import application #initialize an instance of the Application class app = application.Application() app=app.Start("C:hdmttos_2.5.2.0_releasetosreleasebinreleaseHdstSiteGuiWPF.exe") dlg='Site Controller GUI Command Center - Version: 2.5.2.0 OfflineLSM' app.dlg.TestInstance.Click() #print app._findwindows.find_windows() #app.top_window_().print_control_identifiers()
You must be logged in to post. Please login or register an account.
I was using pywinauto sometime ago, but I remember the app Swapy https://github.com/pywinauto/SWAPY was really usefull to identify buttons and frames. I hope that helps.
-helix05 9 years ago
You must be logged in to post. Please login or register an account.